# 邮件配置
from flask_mail import Mail

mail = Mail()

sender = '970780868@qq.com'


def mail_config(app):
    app.config['MAIL_SERVER'] = 'smtp.qq.com'
    app.config['MAIL_PORT'] = 587
    app.config['MAIL_USE_TLS'] = True
    app.config['MAIL_USERNAME'] = sender
    app.config['MAIL_PASSWORD'] = 'hfdvljkziudtbbac'
    mail.init_app(app)


